<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
     var arr = [{
            "name":"aaa",
            "age":100,
            "disan":"disan",
            "disi":"qwertfdc",
            "diwu":"adsvaw"
        },{
            "name":"bbb",
            "age":120,
            "disan":"disan",
            "disi":"sadfe",
            "diwu":"diwu"
        },{
            "name":"ccc",
            "age":130,
            "disan":"disan",
            "disi":"adfsc",
            "diwu":"sgfdh"
        },{
            "name":"ddd",
            "age":140,
            "disan":"sdfgs",
            "disi":"asfd",
            "diwu":"awr"
        },{
            "name":"eee",
            "age":150,
            "disan":"disan",
            "disi":"asda",
            "diwu":"diwu"
        },{
            "name":"fff",
            "age":160,
            "disan":"asd",
            "disi":"disi",
            "diwu":"asdfa"
        }]
        
        console.table(arr)
        console.log(arr)
        var array = []
        var p = [{name:"asd"},{name:"sad"},{name:"bas"},{name:"sbd"},{name:"按时"},{name:"八十"}]
        p.sort(function(a,b){
            return a.name>b.name   // 表示倒序
        })
        console.log(p)
        console.table(p)
    </script>
</body>
</html>